empty result

Thiago Talma 9 年之前
父節點
當前提交
84fd6365f3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/assets/javascripts/components/utils.js.coffee

+ 1 - 1
app/assets/javascripts/components/utils.js.coffee

@@ -129,7 +129,7 @@ class @Utils
129 129
               find('.agent-dry-run-log').text(json.log).end().
130 130
               find('.agent-dry-run-events').text(json.events).end().
131 131
               find('.agent-dry-run-memory').text(json.memory)
132
-            active = if json.events.match(/^\[\s*\]$/) then 'tabLog' else 'tabEvents'
132
+            active = if json.events.match(/^\[?\s*\]?$/) then 'tabLog' else 'tabEvents'
133 133
             $('#resultTabs a[href="#' + active + '"]').tab('show')
134 134
           title: 'Dry Run Results',
135 135
           onHide: callback